package com.ldcc.report_system.ui.report;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.ldcc.report_system.databinding.FragmentSelectAddReportBinding;
import com.ldcc.report_system.util.ActivitySkipUtil;


/**
 * @author wwj[yeshengkele@outlook.com]
 * @description 添加日报界面
 */
public class SelectAddReportFragment extends Fragment {
    private static String TAG = "SelectAddReportFragment";
    private FragmentSelectAddReportBinding selectAddReportBinding;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        this.selectAddReportBinding = FragmentSelectAddReportBinding.inflate(inflater, container, false);
        // 设置添加日报跳转
        this.selectAddReportBinding.selectAddDayReportBtn.setOnClickListener(view -> {
            ActivitySkipUtil.skipAnotherActivity(getActivity(), AddDayReportActivity.class);
        });
        // 设置添加周报跳转
        this.selectAddReportBinding.selectAddWeekReportBtn.setOnClickListener(view -> {
            ActivitySkipUtil.skipAnotherActivity(getActivity(), AddWeekReportActivity.class);
        });
        return this.selectAddReportBinding.getRoot();
    }

    @Override
    public void onResume() {
        //显示时所作的事情
        super.onResume();

    }


}